package com.huakang.service.impl;

import com.huakang.entity.Keshi;
import com.huakang.mapper.KeshiMapper;
import com.huakang.service.KeshiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collections;
import java.util.List;

/**
 * @Author{小熊}
 * @Date2025/1/13 14:57
 */
@Service
@Transactional
public class KeshiServiceImpl implements KeshiService {
    @Autowired
    private KeshiMapper keshiMapper;

    @Override
    public List<Keshi> getAll() {
        return keshiMapper.selectByExample(null);
    }

    @Override
    public List<Keshi> keshiList() {
        List<Keshi> keshis = keshiMapper.selectByExample(null);
        return keshis;
    }
}
